//
//  SystemMessageCenter.h
//  安好
//
//  Created by qinlongqing on 14/12/12.
//  Copyright (c) 2014年 lianchuangbrother. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SecretaryModel.h"
#import "SubscibeModel.h"
#import "NoticeData.h"

@interface SystemMessageCenter : NSObject

+ (SystemMessageCenter *)instance;

- (void)loadDataForIsFirstResign:(BOOL)isFirstResign;

#pragma news相关（安好订阅）
- (BOOL)isHaveNoReadSubscibeNews;

- (void)updataSecretaryNewsMessageToReaded;

- (SubscibeModel *)getTheNewestSecretaryNewsMessage;


#pragma system相关（安好秘书）
- (BOOL)isHaveNoReadedSystemMessage;

- (NSArray *)getAllSystemMessage;

- (void)updataSecretarySystemMessageToReaded;

- (BOOL)isHaveNoReadedMessageForAll;

- (SecretaryModel *)getTheNewestSecretarySystemMessage;


#pragma notice相关（安好圈子）
- (NSArray *)selectSecretaryNoticeMessage;

- (NSArray *)selectAllNoReadedSecretaryNoticeMessage;

- (void)updataSecretaryNoticeMessageToReaded;

- (NoticeData *)getTheNewestSecretaryNoticeMessage;


@end


//data =     {
//    message =         (
//    );
//    news =         {
//     "nid": "184",
//"title": "大话亚健康",
//"description": "11",
//"content": "<p>222222</p>",
//"source": "1",
//"pic": "news/2014/12/23/184.jpg",
//"dateline": "1419322574",
//"state": 0
//    };
//    notice =         (
//    );
//    system =         (
//                      {
//                          content = "";
//                          dateline = 1419562582;
//                          pic = "http://image.niruoanhao.com/xiaoxi/anhao/2014/12/18/18.jpg";
//                          pmsid = "-1";
//                          title = "\U611f\U8c22\U60a8\U4f7f\U7528\U5b89\U597d\U5ba2\U6237\U7aef";
//                          type = 2;
//                          url = "http://m.niruoanhao.com/index/introduction/";
//                      }
//                      );
//    user =         {
//        uid = 873;
//    };
//};
//msg = "";
//status = 1;
